/**
 * Copyright (c) 2018-2099, Chill Zhuang 庄骞 (bladejava@qq.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.springblade.modules.restaurant.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 营业收入表实体类
 *
 * @author Blade
 * @since 2025-02-05
 */
@Data
@TableName("restaurant_operating_income")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "营业收入表")
public class OperatingIncome extends TenantEntity {

	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * 营业日期 yyyy-MM-dd
	 */
	@Schema(description = "营业日期 yyyy-MM-dd")
	private String operatingTime;
	/**
	 * 堂食实收
	 */
	@Schema(description = "堂食实收")
	private BigDecimal dineInIncome;
	/**
	 * 外卖实收
	 */
	@Schema(description = "外卖实收")
	private BigDecimal takeoutIncome;
	/**
	 * 产品收入
	 */
	@Schema(description = "产品收入")
	private BigDecimal productIncome;
	/**
	 * 其他收入
	 */
	@Schema(description = "其他收入")
	private BigDecimal otherIncome;
	/**
	 * 营业收入 合计
	 */
	@Schema(description = "营业收入")
	private BigDecimal totalIncome;

	/**
	 * 采购支出
	 */
	@Schema(description = "采购支出")
	private BigDecimal procurementExpenses;
	/**
	 * 预算支出(预算支出)
	 */
	@Schema(description = "预算支出(预算支出)")
	private BigDecimal fixedExpenses;
	/**
	 * 薪资支出
	 */
	@Schema(description = "薪资支出")
	private BigDecimal salaryExpenses;
	/**
	 * 费用支出(费用支出)
	 */
	@Schema(description = "费用支出(费用支出)")
	private BigDecimal otherExpenses;
	/**
	 * 合计支出
	 */
	@Schema(description = "合计支出")
	private BigDecimal expendAmount;

	/**
	 * 营业毛利 = 营业收入 - 采购支出 - 费用支出
	 */
	@Schema(description = "营业毛利")
	private BigDecimal profitAmount;
	/**
	 *  营业净利 = 营业收入 - 采购支出 - 费用支出 - 预算支出 - 薪资支出 = 营业收入 - 总支出
	 */
	@Schema(description = "营业净利")
	private BigDecimal netProfit;

}
